package com.ljh.mboxvidoserver.system.controller;

import com.ljh.mboxvidoserver.common.result.entity.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping(value = "system")
public class SystemController {

    @RequestMapping(value = "blank")
    public String blank(){
        return "system/blank";
    }

    @RequestMapping(value = "error")
    public String errorPage(HttpServletRequest request){

        Result result = (Result) request.getAttribute("result");
        return result.getResult();
    }
}
